﻿
using BLL;
using DAL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MODEL;

namespace WebApplication1.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class suerController : ControllerBase
    {
        public suerController(suerbll suerbll)
        {
            Suerbll = suerbll;
        }

        public suerbll Suerbll { get; }
        [HttpPut]
        public int Add(suer suer)
        {
            return Suerbll.Add(suer);
        }
        [HttpGet]
        public int Deng(string name, string pwd)
        {
            var hang = Suerbll.Deng(name, pwd);
            return hang;


        }
    }
}
